import { ref } from 'vue'
import { defineStore } from "pinia";

export const usePostStore = defineStore('post', () => {
  const category = ref('') // 分类标签

  const setCategory = (newValue) => {
    category.value = newValue
  }

  return {
    category,
    setCategory
  }
}, {
  persist: true
})
